Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read all ansible facts from ansible_facts[] instead of fact vars #41

Merged
merged 3 commits into from
Jul 21, 2023

Conversation

jrosser
Copy link
Contributor

@jrosser jrosser commented Jul 11, 2023

Fact vars are added to the main variables namespace and duplicate the contents of ansible_facts[].

Using all facts from ansible_facts[] instead of fact vars allows ansible to configure inject_facts_as_vars [1] to be false, reducing the size of variables and any fact cache.

[1] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#inject-facts-as-vars

Jonathan Rosser and others added 3 commits July 11, 2023 17:06
Fact vars are added to the main variables namespace and duplicate
the contents of ansible_facts[].

Using all facts from ansible_facts[] instead of fact vars allows
ansible to confgiure inject_facts_as_vars [1] to be false,
reducing the size of variables and any fact cache.

[1] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#inject-facts-as-vars
@mnaser mnaser merged commit 62781bd into vexxhost:main Jul 21, 2023
87 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants